Returns the RGB color code of the color passed as a color value through an older MS-DOS based programming system.
従来の MS-DOS ベースのプログラミングシステムの使用するカラー値について、その RGB カラーコードを返します。
QBColor (ColorNumber As Integer)
QBColor (ColorNumber As Integer)
Long
ロング整数
ColorNumber: Any integer expression that specifies the color value of the color passed from an older MS-DOS based programming system.
ColorNumber:従来の MS-DOS ベースのプログラミングシステムの使用するカラー値を示す整数表式。
ColorNumber can be assigned the following values:
ColorNumber には下記の値を指定できます。
0 : Black
0 : 黒
1 : Blue
1 : 青
2 : Green
2 : 緑
3 : Cyan
3 : シアン
4 : Red
4 : 赤
5 : Magenta
5 : マゼンタ
6 : Yellow
6 : イエロー
7 : White
7 : 白
8 : Gray
8 : グレー
9 : Light Blue
9 : 明るい青
10 : Light Green
10 : 明るい緑
11 : Light Cyan
11 : 明るいシアン
12 : Light Red
12 : 明るい赤
13 : Light Magenta
13 : 明るいマゼンタ
14 : Light Yellow
14 : 明るい黄
15 : Bright White
15 : 明るい白
This function is used only to convert from older MS-DOS based BASIC applications that use the above color codes. The function returns a long integer value indicating the color to be used in the Office IDE.
この関数は、従来の MS-DOS ベースの BASIC アプリケーションで使われる上記のカラー値を変換する場合にのみ使用します。関数の戻り値は、Office IDE の使用するカラー値を示すロング整数が返されます。
Sub ExampleQBColor
Sub ExampleQBColor
Dim iColor As Integer
Dim iColor As Integer
Dim sText As String
Dim sText As String
iColor = 7
iColor = 7
sText = "RGB= " & Red(QBColor( iColor) ) & ":" & Blue(QBColor( iColor) ) & ":" & Green(QBColor( iColor) )
sText = "RGB= " & Red(QBColor( iColor) ) & ":"& Blue(QBColor( iColor) ) & ":"& Green(QBColor( iColor) )
MsgBox stext,0,"Color " & iColor
MsgBox stext,0,"Color " & iColor
End Sub
End Sub